/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2017
 */

package models.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.org.rapid_framework.page.Page;
import common.base.mybatis.BaseService;
import common.base.mybatis.EntityDao;
import models.dao.ClassInfoDao;
import models.model.ClassInfo;
import models.vo.query.ClassInfoQuery;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */

@Service
@Transactional
public class ClassInfoService extends BaseService<ClassInfo,java.lang.Integer>{

	@Autowired
	private ClassInfoDao classInfoDao;
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	public void setClassInfoDao(ClassInfoDao dao) {
		this.classInfoDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.classInfoDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(ClassInfoQuery query) {
		return classInfoDao.findPage(query);
	}
	
}
